﻿<UserControl x:Class="Merlba.MVVM.Module.Football.Views.ScoreBoardView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="Auto" Width="Auto">

    <Grid Margin="4">
        
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />           
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Label 
            Grid.Row="0" 
            Grid.Column="1" 
            Content="Goals" 
            HorizontalAlignment="Left"
        />
        <Label 
            Grid.Row="0" 
            Grid.Column="2" 
            Content="Behinds" 
            HorizontalAlignment="Left"
        />
        <Label 
            Grid.Row="0" 
            Grid.Column="3" 
            Content="Score" 
            HorizontalAlignment="Left"
        />
 

        <Label 
            Grid.Row="1" 
            Grid.Column="0" 
            Content="{Binding Path=HomeTeamName}"
            HorizontalAlignment="Left"
        />
        <Label 
            Grid.Row="1" 
            Grid.Column="1"  
            HorizontalAlignment="Left"
            Content="{Binding Path=HomeGoals}"
        />
        <Label 
            Grid.Row="1" 
            Grid.Column="2"  
            HorizontalAlignment="Left"
            Content="{Binding Path=HomeBehinds}"
        />
        <Label 
            Grid.Row="1" 
            Grid.Column="3"  
            HorizontalAlignment="Left"
            Content="{Binding Path=HomeScore}"
        />

        <Label 
            Grid.Row="2" 
            Grid.Column="0" 
            Content="{Binding Path=AwayTeamName}"
            HorizontalAlignment="Left"
        />
        <Label 
            Grid.Row="2" 
            Grid.Column="1"  
            HorizontalAlignment="Left"
            Content="{Binding Path=AwayGoals}"
        />
        <Label 
            Grid.Row="2" 
            Grid.Column="2"  
            HorizontalAlignment="Left"
            Content="{Binding Path=AwayBehinds}"
        />
        <Label 
            Grid.Row="2" 
            Grid.Column="3"  
            HorizontalAlignment="Left"
            Content="{Binding Path=AwayScore}"
        />
    </Grid>
</UserControl>
